<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>课程编辑</title>
    <style>
        form {
            margin: 20px auto;
            width: 500px;
            border: 1px solid #ccc;
            padding: 20px
        }
    </style>
</head>
<body>
<form method="post" action="../major_edit/">
    {% csrf_token %}
    <input type="hidden" name="id" value="{{ major.id }}"/>

    <table>
        <tr>
            <th>专业名称</th>
            <td><input name="major" value="{{ major.major }}"></td>
        </tr>
        <tr>
            <th>学历层次</th>
            <td><input name="level" value="{{ major.level }}"/></td>
        </tr>
        <tr>
            <th>主考院校</th>
            <td><input name="colleges" value="{{ major.colleges }}"/></td>
        </tr>
        <tr>
            <th>课程数量</th>
            <td><input name="course_num" value="{{ major.course_num }}"/></td>
        </tr>
        <tr>
            <th>所属省份</th>
            <td><input name="provice" value="{{ major.provice }}"/></td>
        </tr>
        <tr>
            <th>上线状态</th>
{#            <select  name="status">#}
{#                    {% for  status_i in info %}#}
{#                            <option>{{  status_i.get_status_display  }}</option>#}
{#                        {% endfor %}#}
{#            </select>#}
            <td><input name="status" value="{{ major.status }}"/></td>
        </tr>
        <tr>
            <th>同类排序</th>
            <td><input name="sort" value="{{ major.sort }}"/></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit"/>
            </td>
        </tr>
    </table>
</form>
</body>
</html>